/**
 * @description [
 *    全局组件管理器
 *    用来获取组件实例
 *    可用于组件之间的通讯
 * ]
 */
(function() {

	var CmptManager = function() {
		var cache = {};
		var self = {};

		self.get = function(name) {
			// console.log('get '+name+' success');
			return cache[name];
		};

		self.put = function(name, instance) {
			// console.log('put '+name+' success');
			cache[name] = instance;
		};

		return self;
	}();
	window.CmptManager = CmptManager;

}());